import Vue from 'vue'
import Router from 'vue-router'
import home from '@/pages/home'
import navhome from '@/pages/navpages/navhome'
import navtool from '@/pages/navpages/navtool'
import navmanage from '@/pages/navpages/navmanage'
import navhouse from '@/pages/navpages/navhouse'
import navabout from '@/pages/navpages/navabout'
import counselor from '@/pages/navpages/counselor'
import specialhouse from '@/pages/navpages/specialhouse'
import alliance from '@/pages/navpages/alliance'
import househome from '@/pages/navpages/househome'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: home,
      children: [
        {
          path: '/navhome',
          name: 'navhome',
          component: navhome,
        }, {
          path: '/navtool',
          name: 'navtool',
          component: navtool,
        }, {
          path: '/navmanage',
          name: 'navmanage',
          component: navmanage,
        }, {
          path: '/navhouse',
          name: 'navhouse',
          component: navhouse,
        }, {
          path: '/navabout',
          name: 'navabout',
          component: navabout,
        }, {
          path: '/counselor',
          name: 'counselor',
          component: counselor,
        }, {
          path: '/specialhouse',
          name: 'specialhouse',
          component: specialhouse,
        }, {
          path: '/alliance',
          name: 'alliance',
          component: alliance,
        }, {
          path: '/househome',
          name: 'househome',
          component: househome,
        }
      ]
    },
  ]
})
